package com.kantboot.business.talent.repository;

import com.kantboot.business.talent.domain.entity.BusTalentEduMajorDegreeOfUserAccount;
import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface BusTalentEduMajorDegreeOfUserAccountRepository
    extends JpaRepository<BusTalentEduMajorDegreeOfUserAccount, Long> {

    /**
     * 根据用户ID删除
     */
    @Transactional
    @Modifying
    @Query("delete from BusTalentEduMajorDegreeOfUserAccount where userAccountId = ?1")
    void deleteByUserAccountId(Long userAccountId);
}
